package com.zhdl.modules.common.logging.service;

import com.project.common.service.BaseService;
import com.zhdl.modules.common.logging.entity.OptRecord;
import com.zhdl.modules.common.logging.web.req.OptRecordListRequest;
import com.zhdl.modules.common.logging.web.resp.OptRecordListResp;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface OptRecordService extends BaseService<OptRecord, String> {
    void download(List<OptRecord> lists, HttpServletResponse response) throws IOException;

    Page<OptRecordListResp> findAllRecordPage(OptRecordListRequest request, Pageable pageable);

    void save(OptRecord optRecord);

    void saveRecords(String remarks);
}
